import React, {Component} from 'react';
import {NavLink, Route, Switch,Redirect} from 'react-router-dom';
import Shangxin from './shangxin/Shangxin';
import HomeYuGao from './yugao/HomeYuGao';
import './homehome.scss';
export default class HomeHome extends Component{
    render () {
        return (
           <div className="shouye">
                 <div className="tabbar">
                    <NavLink to="/home/home/shangxin">今日10点上新</NavLink>
                    <NavLink to="/home/home/yugao">明日10点预告</NavLink>
                </div>
                <div className="img_bar">
                    <img alt="" src="http://mp5.jmstatic.com//jmstore/image/000/005/5493_std/5c28f6debf003_2048_710.jpg?1546189030&imageView2/2/w/800/q/90"/>
                </div>
                <Switch>
                    <Route path="/home/home/shangxin" component={Shangxin}></Route>
                    <Route path="/home/home/yugao" component={HomeYuGao}></Route>
                    <Redirect to="/home/home/shangxin"></Redirect>
                </Switch>
           </div>
        )
    }
}